import React from "react";
import { HashRouter, Route, Routes } from "react-router-dom";
import { createHashHistory } from "history";
import "./style/main.css";
import Page from "./page/Page";

// const MainPage = LoadPage(() => import("./page/Main"));
// const Page = lazy(() => import("./page/Page"));

export default function App(props) {
  return (
    <HashRouter history={createHashHistory}>
      <Routes>
        {/* <Route exact path="/" element={<Page />} /> */}
        <Route path="/*" element={<Page />} />
      </Routes>
    </HashRouter>
  );
}
